<template>
      <div>
          我是vuex
          {{name1}}
      </div>
</template>

<script>
import {mapState,mapMutations,mapActions} from "vuex"
export default {
    computed:{
        ...mapState({
            // state =>state.命名空间.命名空间下的变量
            name1: (state)=>{ return state.Home.name1}
        })
    }
}
</script>

<style>

</style>